Method for recording data using non-volatile memory and electronic apparatus thereof

ABSTRACT

A method for recording data using a non-volatile memory and an electronic apparatus thereof are provided. In the present method, a set of input data is provided. Then, a data structure of the input data is transformed into a bitmapping data structure. Afterwards, the input data is written sequentially into the non-volatile memory using at least one bit as a basic unit of modification. A total number of bits being modified is then calculated, so as to obtain information needed by the system. Therefore, a minimal memory space is used to record most information, so as to reduce the times for erasing the non-volatile memory and increase the life time of the non-volatile memory.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims the priority benefit of Taiwan applicationserial no. 96145766, filed on Nov. 30, 2007. The entirety theabove-mentioned patent application is hereby incorporated by referenceherein and made a part of specification.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention generally relates to a method for recording datausing a memory and an apparatus thereof, and in particular, to a methodfor sequentially recording data using a non-volatile memory and anelectronic apparatus thereof.

2. Description of Related Art

Memories can be classified into volatile memories and non-volatilememories according to characteristics thereof. The volatile memoriesinclude DRAM and SRAM, which have advantages such as high speed ofreading and writing, no need for erasing, and rewritable ability.However, the data stored in the volatile memory is lost easily after thesystem is powered off (power supply is suspended). On the contrary, thedata stored in the non-volatile memory will not be lost after the systemis powered off, but it is necessary to erase the old data before writingother new data. There are various non-volatile memories, and the mostsignificant one of which is Flash memory.

The characteristic of the non-volatile memory is that the bit value canonly be changed from 1 to 0, and cannot be changed from 0 to 1. When itis required to change 0 to 1, an erasing action is needed. FIG. 1 is aschematic view illustrating the characteristics of the conventionalnon-volatile memory. Referring to FIG. 1( a), it is assumed that thedata originally stored in the non-volatile memory is 1010, when itintends to write data 1000, it is only necessary to change a third bitin the original data 1010 from 1 to 0, without performing the easing.However, as shown in FIG. 1( b), when it intends to write data 1011, thesystem cannot change 0 to 1, so it is impossible to change a fourth bitof the data 1010 from 0 to 1. At this time, as shown in FIG. 1( c), itis necessary to erase the data 1010 to 1111 first, and then write thedata 1011, i.e., change a second bit of the data 1111 from 1 to 0,thereby successfully finishing the action of writing the data.

FIG. 2 is a flow chart of a conventional method for recording data usingthe non-volatile memory. Referring to FIG. 2, the conventional methodfor recording data includes preparing input data first (step S202),transforming a main body of the input data into a specific datastructure (step S204), and looking up an address correspondingly storingthe kind of input data in the non-volatile memory (step S206).Particularly, when performing writing on the non-volatile memory,usually one section is used as a unit, and the sector programs the datastructure during storing according to the type of the input data.Therefore, every time when the data is written, it is necessary totransform the data into the data structure corresponding to the sectorfirst and look up the address of the sector, so as to correctly writethe input data. For example, FIG. 3 shows the data structure of theconventional system parameters. Referring to FIG. 3, a plurality ofsectors storing the parameter data (including sectors 302 to 308) areprogrammed in the non-volatile memory, and when user needs to write thedata into the memory, it is necessary to transform the data into thecorresponding data structure before writing the data into the sectors302 to 308.

After the address storing the input data is decided, it is checkedwhether the sector of the non-volatile memory in which the data is to bewritten is empty (step S208). If yes, it represents that all the bitvalues in the sector are 1, so the erasing step is not required, and theinput data can be directly written using a byte as a modifying unit(step S210), that is, when performing the writing action once, the dataof at least one byte is updated. On the contrary, if no, it representsthat the bit values of some bits in the sector are 0, so the erasing isrequired (step S212). After erasing, similarly, the input data can bewritten into the sector of the non-volatile memory using a byte as themodifying unit (step S210).

By the conventional method, it is necessary to erase the non-volatilememory each time when performing writing, which consumes the life of thenon-volatile memory. Therefore, in order to reduce the times for erasingthe non-volatile memory, a conventional method of successively writingis also provided, that is, when the size of the input data is smallerthan a sector, and unused space of the sector is sufficient, new datacan be successively written after the previous input data. FIG. 4 is aflow chart of the conventional method for recording data using thenon-volatile memory. Referring to FIG. 4, in this method, input data isprepared first (step S402), next a main body of the input data istransformed into a specific data structure (step S404), and an addresscorrespondingly storing the type of input data is looked up in thenon-volatile memory (step S406). The above steps are the same as thosein the above conventional method for recording data using thenon-volatile memory, so the details are not described here.

However, the difference lies in that in step S408, it is checked whetherthe sector of the non-volatile memory in which the input data has theunused space (step S408). If it is found that the sector of thenon-volatile memory has the unused space after checking, the method ischanged to directly write the new data after the previous set of datausing the byte as the modifying unit (step S410). On the contrary, ifthe unused space does not exist or the unused space is insufficient,erasing is performed first (step S412), and after erasing, the new datais written into the erased section of the non-volatile memory using thebyte as the modifying unit (step S414). It can be understood thatalthough this method can decrease the erasing times, but the minimalunit performing the writing is still one byte, which still results inthe waste of space.

To sum up, disadvantages for using the non-volatile memory lie in thaterasing times are plenty, and a lot of time is needed by erasing sinceone sector is used as the unit for each erasing. Generally, sector erasetime of a flash is approximately 1 (general count) to 8 (maximal count)seconds, and byte programming time of the flash is approximately 35(general count) to 300 (maximal count) seconds. In addition, by theabove two methods, it is still necessary to frequently perform erasingand rewriting actions. When system configuration or other information isstored in the non-volatile memory, the operation of the system might beunsmooth due to long erasing time. Further, erasing and writing life ofa common non-volatile memory is approximately 100,000 times, andfrequent erasing and rewriting may shorten the life time and reduce thereliability of the non-volatile memory.

SUMMARY OF THE INVENTION

The present invention is directed to a method for recording data byusing a non-volatile memory, capable of transforming input data intodata with few bits by bitmapping and sequentially writing the data intothe non-volatile memory, so as to reduce erasing counts for thenon-volatile memory.

The present invention is directed to an electronic apparatus forrecording data by using a non-volatile memory, capable of transforming adata structure of input data by a controller, and sequentially writingthe data into the non-volatile memory, so as to reduce memory spacerequired by the recording of the input data.

As embodied and broadly described herein, the present invention providesa method for recording data using a non-volatile memory, which includesproviding a set of input data first, transforming a data structure ofthe input data into a bitmapping data structure, and then sequentiallywriting the input data into the non-volatile memory using at least onebit as a unit of modification.

In an embodiment of the present invention, the step of transforming thedata structure of the input data into the bitmapping data structureincludes transforming the input data into data having at least one bitbut less than one byte in a bitmapping manner.

In an embodiment of the present invention, the step of sequentiallywriting the input data into the non-volatile memory includes looking upa writing address correspondingly recording the input data in thenon-volatile memory, and sequentially writing the input data to thewriting address.

In an embodiment of the present invention, the writing address records afinal address of a byte of previous input data. After the step oflooking up the writing address, the method further includes determiningwhether unused space of the byte of the previous input data issufficient to record the input data, in which if the unused space of thebyte is sufficient, the input data is directly written into the byte; ifthe unused space of the byte is insufficient, a next byte of thenon-volatile memory is selected to record the input data when the byteis filled with the input data.

In an embodiment of the present invention, wherein the step of selectingthe next byte of the non-volatile memory to record the input datafurther includes determining whether the unused space of thenon-volatile memory is sufficient to record the input data, in which ifthe unused space of the non-volatile memory is insufficient, thenon-volatile memory is erased and the input data is sequentiallywritten; in the other aspect, if the unused space of the non-volatilememory is sufficient, the next byte of the non-volatile memory isdirectly selected to write the input data.

The present invention provides an electronic apparatus for recordingdata using a non-volatile memory, which includes a non-volatile memoryand a controller. The non-volatile memory is used for storing aplurality of sets of playing information of the electronic apparatus,and the controller is coupled to the non-volatile memory for receivingan input data, transforming a data structure of the input data into abitmapping data structure, and finally writing the input data into thenon-volatile memory using at least one bit as a unit of modification.The controller includes a bitmapping module, suitable for transformingthe input data into data having at least one bit but less than one bytein a bitmapping manner.

In an embodiment of the present invention, the controller includes awriting address searching module, suitable for looking up a writingaddress correspondingly recording the input data in the non-volatilememory, and the controller writes the input data according to thewriting address. The writing address is a final address of a byte ofprevious input data.

In an embodiment of the present invention, the controller furtherincludes a used space determining module, for determining whether theunused space of the byte of the previous input data is sufficient torecord the input data, in which if the unused space of the byte issufficient, the controller directly writes the input data into the byte,and if the unused space of the byte is insufficient, the controllerselects a next byte of the non-volatile memory to record the input datawhen the byte is filled with the input data.

In an embodiment of the present invention, when the used spacedetermining module selects the next byte of the non-volatile memory torecord the input data, the used space determining module furtherdetermines whether the unused space of the non-volatile memory issufficient to record the input data, in which if the unused space of thenon-volatile memory is insufficient, the non-volatile memory is erased,and the input data is sequentially written.

In an embodiment of the present invention, when the used spacedetermining module determines whether the unused space of thenon-volatile memory is sufficient, if the unused space of thenon-volatile memory is sufficient, the controller directly selects anext byte of the non-volatile memory to sequentially write the inputdata.

In an embodiment of the present invention, the non-volatile memoryincludes a flash memory, and the input data includes playing informationof a multimedia player. The playing information includes one of playingtime, playing times, and playing channel.

In the present invention, the input data is transformed into data havingat least one bit but less than one byte in a bitmapping manner, and whenthe non-volatile memory is actually written, the input data issuccessively written after the final address of the byte of the previousinput data using at least one bit as the unit for modification.Accordingly, the times for erasing the non-volatile memory can begreatly reduced, so as to prolong life time of the non-volatile memory.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings are included to provide a furtherunderstanding of the invention, and are incorporated in and constitute apart of this specification. The drawings illustrate embodiments of theinvention and, together with the description, serve to explain theprinciples of the invention.

FIG. 1 is a schematic view of characteristics of a conventionalnon-volatile memory.

FIG. 2 is a flow chart of a conventional method for recording data usinga non-volatile memory.

FIG. 3 is a data structure of conventional system parameters.

FIG. 4 is a flow chart of the conventional method for recording datausing the non-volatile memory.

FIG. 5 is a flow chart of a method for recording data using anon-volatile memory according to an embodiment of the present invention.

FIG. 6 is an example of using the non-volatile memory to record dataaccording to an embodiment of the present invention.

FIG. 7 is a flow chart of the method for recording data using thenon-volatile memory according to another embodiment of the presentinvention.

FIG. 8 is a block diagram of the electronic apparatus for recording datausing the non-volatile memory according to an embodiment of the presentinvention.

DESCRIPTION OF THE EMBODIMENTS

Reference will now be made in detail to the present preferredembodiments of the invention, examples of which are illustrated in theaccompanying drawings. Wherever possible, the same reference numbers areused in the drawings and the description to refer to the same or likeparts.

Generally, the playing information of the multimedia player, such asplaying time and playing times, must be momentarily updated in playingperiod of the multimedia. The information is usually recorded in anon-volatile memory built in the multimedia player using a byte as theminimal unit. However, data amount of the playing information is small,and actually it is unnecessary to use a byte to record. If the spaceoccupied by the record can be reduced to a single bit or few bits bytransforming the data structure, it is possible to effectively use thenon-volatile memory and to reduce the times for erasing the non-volatilememory. The present invention is a method for recording data using anon-volatile memory and an electronic apparatus thereof developed basedon the above concept. In order to make the present invention morecomprehensible, embodiments are given in the following as examples,according to which the present invention can be surely implemented.

FIG. 5 is a flow chart of a method for recording data using anon-volatile memory according to an embodiment of the present invention.Referring to FIG. 5, this embodiment is suitable for recording playinginformation of the multimedia player in the non-volatile memory. Thenon-volatile memory includes a flash memory, and the playing informationincludes playing time, playing times, or playing channel etc., and thescope is not limited herein.

Firstly, the multimedia player provides input data (step S502). Theinput data is, for example, provided by the multimedia player at everyspecific time interval to sequentially record the playing informationsuch as the playing time and the playing times into the non-volatilememory, for later query.

Next, a data structure of the input data is transformed into abitmapping data structure (step S504). The bitmapping data structure canbe set by users, such that the information originally occupying largermemory space is transformed into data capable of being represented by asingle bit or few bits (the minimal unit is one bit) in a bitmappingmanner, and is sequentially recorded into the non-volatile memory, so asto reduce the usage of the memory.

Finally, the input data is written into the non-volatile memory using atleast one bit as a unit of modification (step S506). Here, the unit ofmodification for writing the non-volatile memory is determined accordingto the bitmapping data structure after the transformation of the inputdata. If the transformed input data is only one bit, the writing unit isone bit, and if the transformed input data is two bits, the writing unitis two bits, and so on and so forth.

It can be known from the present invention, the data originally recordedwith a space of one byte or more is transformed to be data recorded by asingle bit or few bits, so as to greatly reduce the usage of the memory.In addition, a next set of data is successively recorded after theprevious input data, which can also effectively utilize each byte of thenon-volatile memory, so as to reduce the times for erasing the data andto increase the life time of the non-volatile memory.

For example, FIG. 6 is an example of using the non-volatile memory torecord the data according to an embodiment of the present invention.Referring to FIG. 6, the playing time of the multimedia player includesthe amount of hours, the amount of minutes, and the amount of seconds,and this information originally requires three bytes to record. However,if the method for recording the information is changed to record once atevery 10 seconds and record one bit each time in the bitmapping manner,the playing time information up to 80 seconds can be recorded in onebyte (8 bits). As shown in FIG. 6, at a first 10 seconds, it is onlynecessary to modify a first bit of the data 11111111 originally recordedin a byte 600 to 0, at a second 10 seconds, it is only necessary tomodify a second bit of the data 01111111 of the byte to 0, and so on andso forth. Accordingly, it is only necessary to modify one bit from 1 to0 when a set of playing time information is recorded, and one byte canrecord for eight times. In other words, only one erasing action isrequired after at least eight sets of playing time information arerecorded, and thus the time required to erase the non-volatile memory iseffectively decreased. By using the manner of recording the playing timeinformation, the multimedia player can get the playing time only byreading a number of bits with a bit value of 0 in the byte, andcontinuously play the multimedia data from the playing time.

It should be noted that as compared with the aforesaid step of writingthe data, a mechanism for reading the input data is also providedsubsequently by the present invention. After the input data is writteninto the non-volatile memory in step S506, the input data recorded inthe non-volatile memory is sequentially read using at least one bit as areading unit. The reading manner includes, for example, firstly lookingup a reading initial address of the corresponding type of input data inthe non-volatile memory, and looking up a total number of bits beingmodified of the corresponding type of data according to the readinginitial address, so as to provide information required by the operationof the system. In brief, the “total number of bits being modified”(i.e., number of bits being modified from 1 to 0) is used to obtain theinformation required by the system.

In the above embodiment, only a single byte is used as an example, butthe present invention further includes writing the input data into aplurality of bytes of the non-volatile memory, and the erasing action isperformed only when the non-volatile memory is filled with the data. Anembodiment is given below for detailed description.

FIG. 7 is a flow chart of the method for recording data using thenon-volatile memory according to another embodiment of the presentinvention. Referring to FIG. 7, this embodiment is suitable forrecording playing information of the multimedia player in thenon-volatile memory. A specific sector (including a plurality of bytes)is disposed in the non-volatile memory to store the playing information,and the erasing action is performed only when the specific sector isfilled with the playing information. In addition, if it is necessary tostore different kinds of system information at the same time, forexample, the playing time and the playing times, the specific sector ispartitioned into different sub-sectors by adding headers, and theinformation is correspondingly written into each sub-section by usingthe above method.

Firstly, input data is provided by the multimedia player (step S702).The input data is, for example, the playing information provided by themultimedia player at every specific time interval, such as the playingtime, the playing times, or the playing channel. Next, a data structureof the input data is transformed into a bitmapping data structure (stepS704), in which the input data is transformed into data having at leastone bit but less than one byte (8 bits) by adopting the bitmappingmanner.

Next, the writing address correspondingly recording the input data islooked up from the non-volatile memory (step S706). The writing addressis the final address of the byte of previous input data recorded in thenon-volatile memory. When the final address is looked up, it is furtherdetermined whether the unused space of the byte is sufficient to recordthe input data (step S708). If the unused space of the byte issufficient, the input data is directly and successively written afterthe final address of the byte of the previous input data (step S710).However, if the unused space of the byte is insufficient, a next byte ofthe non-volatile memory is additionally selected to record the inputdata when the byte is filled with the input data. At this time, it isfurther determined whether the unused space of the non-volatile memoryis sufficient to record the input data (step S712). If the unused spaceof the non-volatile memory is sufficient, the next byte of thenon-volatile memory is directly selected to write the input data (stepS714). However, if the unused space of the non-volatile memory isinsufficient, it represents that the next byte for writing the datacannot be found, therefore, it is necessary to erase the non-volatilememory (step S716), and then write the input data (step S718).

It can be known from the above embodiment, a plurality of bytes aredisposed in the non-volatile memory to record the playing information,and only a single bit or few bits are used each time the playinginformation is recorded, so it is possible to use the minimal storagespace to record the maximal information. In addition, when the disposedbytes are filled with the playing information (e.g., the bit values inthe bytes are all 0), the erasing action of the bytes is performed, soas to reduce the times for erasing the memory.

If the method of the present invention is compared with the twoconventional methods, a comparison result can be obtained in Table 1.Referring to Table 1, a way to update data of one 4 KB sector in thenon-volatile memory is used as an example. If the conventional method 1is adopted, the data every time to be written uses one byte as a unit,such that it is necessary to erase once after each set of data iswritten, in which a ratio of writing and erasing is 1/1. If theconventional method 2 is adopted, the data every time to be written usesone byte as a unit, such that it is necessary to erase once after each4096 sets of data are written, in which a ratio of writing and erasingis 4096/1. As compared with the method 1, the performance is increasedby 4096 times. In addition, if the method 3 of the present invention isadopted, one bit is used as a unit, so it is necessary to erase onceafter each 32768 sets of data are written, in which a ratio of writingand erasing is 32768/1. As compared with the method 1, the performanceis increased by 32768 times, which is quite appreciable.

TABLE 1 Method 1 Method 2 Method 3 Size of input data One byte One byteOne bit Writing times/Erasing times 1/1 4096/1 32768/1 Increase ofperformance 1 4096 32768

It should be noted that the method for recording data using thenon-volatile memory can be realized by electronic apparatus such as themultimedia player. Particularly, besides the playing information of themultimedia player, the information required by the operation of otherelectronic apparatus can be recorded by using the method of the presentinvention, so as to reduce the times for erasing the memory. Anembodiment is further given below to illustrate the hardwareimplementation of the present invention.

FIG. 8 is a block diagram of the electronic apparatus for recording datausing a non-volatile memory according to an embodiment of the presentinvention. Referring to FIG. 8, an electronic apparatus 800 of thisembodiment includes a non-volatile memory 810 and a controller 820, inwhich the non-volatile memory 810 is, for example, a flash memory forstoring the data written by the controller 820 of the electronicapparatus 800.

The controller 820 is coupled to the non-volatile memory 810 forproviding input data, transforming a data structure of the input datainto a bitmapping data structure, and writing the input data into thenon-volatile memory 810 using at least one bit as a unit ofmodification.

Particularly, the controller 820 includes a bitmapping module 822, awriting address searching module 824, a used space determining module826, a reading position searching module 828, and a data reading module830. The bitmapping module 822 transforms the input data into datahaving at least one bit but less than one byte in a bitmapping manner.The writing address searching module 824 is used to look up a writingaddress correspondingly recording the input data in the non-volatilememory 810, and the controller writes the input data into thenon-volatile memory 810 accordingly. The writing address is a finaladdress of the byte of previous input data.

In addition, the used space determining module 826 is used to determinewhether the unused space of the byte of the previous input data issufficient to record the recent input data. If the unused space of thebyte is sufficient, that is, when the unused bit value is 1, thecontroller 820 directly writes the input data into the bytesequentially. On the contrary, if the unused space of the byte isinsufficient, that is, all the bits in the byte are modified and the bitvalues thereof are all 0, the controller 820 selects a next byte of thenon-volatile memory 810 to record the input data after the byte isfilled with the input data.

As compared with the content of the foregoing input data, the presentinvention also provides a mechanism for reading the input data. Thereading position searching module 828 is used to look up a readinginitial address of the corresponding type of input data in thenon-volatile memory 810, and the data reading module 830 is used to lookup a total number of bits being modified of the corresponding type ofdata according to the reading initial address, so as to provide theinformation required by the operation of the system.

It should be noted that when the used space determining module 826selects the next byte of the non-volatile memory to record the inputdata, the used space determining module 826 further determines whetherthe unused space of the non-volatile memory 810 is sufficient to recordthe input data. If the unused space of the non-volatile memory 810 issufficient, the controller 820 directly selects the next byte of thenon-volatile memory 810 to write the input data. On the contrary, if theunused space of the non-volatile memory 810 is insufficient, it isnecessary to erase the non-volatile memory 810, and then write the inputdata.

To sum up, in the method of the present invention for recording datausing the non-volatile memory and the electronic apparatus thereof,according to the electrical characteristics of the non-volatile memory,the minimal unit to write the data is changed to a single bit by usingthe bitmapping data structure, so as to reduce the amount of the dataeach time written into the non-volatile memory. Therefore, it is notnecessary to erase the non-volatile memory frequently, so as to prolongthe life time of the non-volatile memory.

It will be apparent to those skilled in the art that variousmodifications and variations can be made to the structure of the presentinvention without departing from the scope or spirit of the invention.In view of the foregoing, it is intended that the present inventioncover modifications and variations of this invention provided they fallwithin the scope of the following claims and their equivalents.

1. A method for recording data using a non-volatile memory, comprising:providing input data; transforming a data structure of the input datainto a bitmapping data structure; and sequentially writing the inputdata into the non-volatile memory using one bit as a unit.
 2. The methodaccording to claim 1, wherein the step of transforming the datastructure of the input data into the bitmapping data structurecomprises: transforming the input data into a data structure having atleast one bit but less than one byte by bitmapping.
 3. The methodaccording to claim 1, wherein the step of writing the input data intothe non-volatile memory comprises: looking up a writing addresscorrespondingly recording the input data in the non-volatile memory; andwriting the input data to the writing address.
 4. The method accordingto claim 3, wherein the writing address records a final address of abyte of a previous input data.
 5. The method according to claim 4,wherein after the step of looking up the writing address comprises:determining whether unused space of the byte of the previous input datais sufficient to record the input data; if the unused space of the byteis sufficient, directly writing the input data into the byte; and if theunused space of the byte is insufficient, selecting a next byte of thenon-volatile memory to record the input data when the byte is filledwith the input data.
 6. The method according to claim 5, wherein thestep of selecting the next byte of the non-volatile memory to record theinput data comprises: determining whether the unused space of thenon-volatile memory is sufficient to record the input data; if theunused space of the non-volatile memory is insufficient, erasing thenon-volatile memory and writing the input data; and if the unused spaceof the non-volatile memory is sufficient, directly selecting the nextbyte of the non-volatile memory to write the input data.
 7. The methodaccording to claim 1, further comprising: sequentially reading the inputdata recorded in the non-volatile memory by using at least one bit as areading unit.
 8. The method according to claim 7, wherein the step ofsequentially reading the input data recorded in the non-volatile memorycomprises: looking up a reading initial address of a corresponding typeof input data in the non-volatile memory; and looking up a total numberof the bits being modified of the corresponding type of data accordingto the reading initial address, so as to provide information required bythe operation of the system.
 9. The method according to claim 1, whereinthe non-volatile memory comprises a flash memory.
 10. The methodaccording to claim 1, wherein the input data comprises playinginformation of a multimedia player.
 11. The method according to claim10, further comprising partitioning the non-volatile memory into aplurality of sub sectors by adding headers, so as to record differenttypes of the playing information.
 12. The method according to claim 10,wherein the playing information comprises one of playing time, playingtimes, and playing channel.
 13. An electronic apparatus for recordingdata using a non-volatile memory, comprising: a non-volatile memory, forstoring a plurality of sets of playing information of the electronicapparatus; and a controller, coupled to the non-volatile memory, forreceiving an input data, transforming a data structure of the input datainto a bitmapping data structure, and comprising: a bitmapping module,capable of transforming the input data into data having at least one bitbut less than one byte in a bitmapping manner.
 14. The electronicapparatus according to claim 13, wherein the controller furthercomprises: a writing address searching module, suitable for looking up awriting address correspondingly recording the input data in thenon-volatile memory, wherein the controller writes the input dataaccording to the writing address.
 15. The electronic apparatus accordingto claim 13, wherein the writing address is a final address of a byte ofprevious input data.
 16. The electronic apparatus according to claim 15,wherein the controller comprises: a reading position searching module,for looking up a reading initial address of a corresponding type ofinput data in the non-volatile memory; and a data reading module, forlooking up a total number of bits being modified of the correspondingtype of data according to the reading initial address, so as to provideinformation required by the operation of the system.
 17. The electronicapparatus according to claim 15, wherein the controller comprises: aused space determining module, for determining whether the unused spaceof the byte of the previous input data is sufficient to record the inputdata, wherein if the unused space of the byte is sufficient, thecontroller directly writes the input data into the byte; and if theunused space of the byte is insufficient, the controller selects a nextbyte of the non-volatile memory to record the input data when the byteis filled with the input data.
 18. The electronic apparatus according toclaim 17, wherein when the used space determining module selects thenext byte of the non-volatile memory to record the input data, the usedspace determining module further determines whether the unused space ofthe non-volatile memory is sufficient to record the input data, if theunused space of the non-volatile memory is insufficient, thenon-volatile memory is erased, and the input data is written.
 19. Theelectronic apparatus according to claim 18, wherein when the used spacedetermining module determines whether the unused space of thenon-volatile memory is sufficient, if the unused space of thenon-volatile memory is sufficient, the controller directly selects thenext byte of the non-volatile memory to write the input data.
 20. Theelectronic apparatus according to claim 13, wherein the non-volatilememory comprises a flash memory.
 21. The electronic apparatus accordingto claim 13, wherein the input data comprises playing information of amultimedia player.
 22. The electronic apparatus according to claim 13,wherein the playing information comprises one of playing time, playingtimes, and playing channel.